/******************************************************************************
 * @File name   :      MemberInof.java
 *
 * @Author      :      ANMA
 *
 * @Date        :      Jul 20, 2015
 *
 * @Copyright Notice: 
 * Copyright (c) 2014 DMS, Inc. All  Rights Reserved.
 * This software is published under the terms of the DMS Software
 * License version 1.0, a copy of which has been included with this
 * distribution in the LICENSE.txt file.
 * 
 * ----------------------------------------------------------------------------
 * Date                         Who         Version         Comments
 * Jul 20, 2015 6:25:30 PM    ANMA      1.0            Initial Version
 *****************************************************************************/
package com.cap.bts.crmdp.dealer.member.domain;

import java.io.Serializable;
import java.util.Date;

import javax.persistence.AttributeOverride;
import javax.persistence.AttributeOverrides;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.Table;

import org.hibernate.annotations.Cache;
import org.hibernate.annotations.CacheConcurrencyStrategy;

import com.cap.bts.framework.common.domain.BaseDomain;

/**
 * 
 */
@Cache(usage = CacheConcurrencyStrategy.READ_WRITE)
@Entity
@Table(name="TM_RAW_CAR_PLATE")
@AttributeOverrides({
	@AttributeOverride(name="createDate", column=@Column(name="CREATE_DATE", nullable = false)),
	@AttributeOverride(name="createBy", column=@Column(name="CREATE_BY")),
    @AttributeOverride(name="lastUpdateBy", column=@Column(name="LAST_UPDATE_BY")),
    @AttributeOverride(name="lastUpdateDate", column=@Column(name="LAST_UPDATE_DATE"))
})
public class CarPlateInfo extends BaseDomain implements Serializable{

	/**
	 * 
	 */
	private static final long serialVersionUID = 1L;
	
	private Long id;
	private String carPlate;
	private Long memberId;	
	private Date registerDate;
	private String memberStatus;
	private int updateTimes;
	private String marsCarId;
	/**
	 * @return the id
	 */
	@Id
	@GeneratedValue(strategy = GenerationType.AUTO)
	public Long getId() {
		return id;
	}
	
	/**
	 * @param id the id to set
	 */
	public void setId(Long id) {
		this.id = id;
	}

	/**
	 * @return the carPlate
	 */
	@Column(name="CAR_PLATE")
	public String getCarPlate() {
		return carPlate;
	}

	/**
	 * @param carPlate the carPlate to set
	 */
	public void setCarPlate(String carPlate) {
		this.carPlate = carPlate;
	}

	/**
	 * @return the memberId
	 */
	@Column(name="MEMBER_ID", nullable = false)
	public Long getMemberId() {
		return memberId;
	}

	/**
	 * @param memberId the memberId to set
	 */
	public void setMemberId(Long memberId) {
		this.memberId = memberId;
	}

	/**
	 * @return the registerDate
	 */
	@Column(name="REGISTER_DATE", nullable = false)
	public Date getRegisterDate() {
		return registerDate;
	}

	/**
	 * @param registerDate the registerDate to set
	 */
	public void setRegisterDate(Date registerDate) {
		this.registerDate = registerDate;
	}

	/**
	 * @return the memberStatus
	 */
	@Column(name="MEMBER_STATUS")
	public String getMemberStatus() {
		return memberStatus;
	}

	/**
	 * @param memberStatus the memberStatus to set
	 */
	public void setMemberStatus(String memberStatus) {
		this.memberStatus = memberStatus;
	}

    /**
     * @Date        :      2015年9月6日
     *
     * @return the updateTimes
     */
	@Column(name="UPDATE_TIMES")
    public int getUpdateTimes() {
        return updateTimes;
    }

    /**
     * @Date        :      2015年9月6日
     *
     * @param updateTimes the updateTimes to set
     */
    public void setUpdateTimes(int updateTimes) {
        this.updateTimes = updateTimes;
    }

    /**
     * @return the marsCarId
     */
    @Column(name="MARS_CAR_ID")
    public String getMarsCarId() {
        return marsCarId;
    }

    /**
     * @param marsCarId the marsCarId to set
     */
    public void setMarsCarId(String marsCarId) {
        this.marsCarId = marsCarId;
    }
    
    
}
